?>
<?php
$this->_loginForm->render();
?>
<form id="table_new_art" action="/admin/addart" method="post">
	<div>
		<p>
			<label for="tb_title">Titre</label> (limite : 128 caractères)<br/>
			<input type="text" name="tb_title" id="tb_title" size="60" />
		</p>
		<p>
			Url : http://loudo.net<span id="url_preview"></span>
		</p>
		<p>
			<label for="cb_cat">Catégorie</label><br/>
			<select name="cb_cat" id="cb_cat">
			<?php
			foreach($this->_cats as $cat)
				echo '<option value="'.$cat->get_id().'">'.$cat->get_name().'</option>';
			?>
			</select>
		</p>
		<p>
			<label for="tb_desc">Description</label> (limite conseillée : 150 caractères)<br/>
			<textarea name="tb_desc" id="tb_desc" cols="59" rows="2" ></textarea>
		</p>
		<p>
			<label for="tb_key">Mots clés (limite conseillée : 60 caractères)</label><br/>
			<input type="text" name="tb_key" id="tb_key" size="60" />
		</p>
		<p>
			<input type="checkbox" name="cb_pub" id="cb_pub" value="oui" /><label for="cb_pub">Publier ?</label>&nbsp;
			<input type="checkbox" name="cb_share" id="cb_share" value="oui" /><label for="cb_share">Partageable ?</label>
		</p>
		<p>
			<label for="tb_content">Contenu</label> (<a target="blank" href="http://en.wikipedia.org/wiki/Textile_%28markup_language%29">aide Textile</a>)<br/>
			<textarea name="tb_content" id="tb_content" rows="30" cols="100" style="width:90%;" ></textarea>
		</p>
		<p>
			<input type="submit" value="Créer l'article"/>
		</p>
	</div>
</form>